package com.niit.galuser;

import com.netflix.ribbon.proxy.annotation.Hystrix;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
import org.springframework.stereotype.Component;

@SpringBootApplication
@EnableDiscoveryClient
@EnableHystrix
@EnableFeignClients
@EnableRedisHttpSession
@ComponentScan("com.niit.*")
@MapperScan("com.niit.dao")
public class GalUserApplication {

    public static void main(String[] args) {
        SpringApplication.run(GalUserApplication.class, args);
    }

}
